package com.liujun.spring4.demo.aop.aop.methodInterceptor;

import com.liujun.spring4.demo.aop.aop.beforeadvice.Waiter;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author liujun
 * @version 0.0.1
 * @date 2018/09/22
 */
public class InterceptorSpringProxyFactoryBean {

  @Test
  public void testwaite() {
    ApplicationContext context =
        new ClassPathXmlApplicationContext(
                "com/liujun/spring4/demo/aop/aop/methodInterceptor/InterceptorSpringProxyFactoryBean.xml");
    Waiter wait = (Waiter) context.getBean("waiter");
    wait.greetTo("feifei");
  }
}
